package com.xlh.support.attendance.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author sy
 */
@ApiModel("满分设置PO")
@Data
@Accessors(chain = true)
public class SettingMarkPO {


    @ApiModelProperty("业务类型")
    private String busiType;

    @ApiModelProperty("班级Id集合")
    @NotEmpty(message = "班级Id集合不能为空")
    private List<Long> classIdList;


    @ApiModelProperty("课程Id")
    @NotNull(message = "课程Id不能为空")
    private Long courseId;


    @ApiModelProperty("章节Id")
    private Long chapterId;

    @ApiModelProperty("满分值")
    @NotNull(message = "考勤满分不能为空")
    @Min(1)
    private Integer fullMark;


    @ApiModelProperty("旷课递减分数")
    private Integer degression;



}
